package com.bckj.fastboot.core.page.configuration;

import com.bckj.fastboot.core.page.aspect.PageQueryAspect;
import com.github.pagehelper.PageInterceptor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class FastPageConfiguration {

    @Bean
    @ConditionalOnClass(PageInterceptor.class)
    public PageQueryAspect pageQueryAspect() {
        return new PageQueryAspect();
    }
}
